<bean id="${FilePollingComponent.id}" class="com.kingyea.esb.components.file.FilePollingComponent" >
	<property name="id"	value="${FilePollingComponent.id}"></property>
	<#if (FilePollingComponent.x)??>
	<property name="x"		value="${FilePollingComponent.x}" ></property>
	<#else>
	<property name="x"		value="209" />
	</#if>
	<#if (FilePollingComponent.y)??>
	<property name="y"		value="${FilePollingComponent.y}" ></property>
	<#else>
	<property name="y"		value="165" />
	</#if>
	<property name="directoryName"	value="${FilePollingComponent.directoryName}" ></property>
	<#if (FilePollingComponent.delay)??>
	<property name="delay"		value="${FilePollingComponent.delay}" ></property>
	</#if>
	<#if (FilePollingComponent.initialDelay)??>
	<property name="initialDelay"		value="${FilePollingComponent.initialDelay}"></property>
	</#if>	
	<#if (FilePollingComponent.recursive)??>
	<property name="recursive"		value="${FilePollingComponent.recursive?c}" ></property>
	</#if>
	<#if (FilePollingComponent.minDepth)??>
	<property name="minDepth"		value="${FilePollingComponent.minDepth}"></property>
	</#if>
	<#if (FilePollingComponent.maxDepth)??>
	<property name="maxDepth"		value="${FilePollingComponent.maxDepth}" ></property>
	</#if>
	<#if (FilePollingComponent.autoCreate)??>
	<property name="autoCreate"		value="${FilePollingComponent.autoCreate?c}" ></property>
	</#if>
	<#if (FilePollingComponent.delete)??>
	<property name="delete"		value="${FilePollingComponent.delete?c}"></property>
	</#if>
	<#if (FilePollingComponent.move)??>
	<property name="move"		value="${FilePollingComponent.move}"></property>
	</#if>
	<#if (FilePollingComponent.noop)??>
	<property name="noop"		value="${FilePollingComponent.noop?c}"></property>
	</#if>
	<#if (FilePollingComponent.idempotent)??>
	<property name="idempotent"		value="${FilePollingComponent.idempotent?c}"></property>
	</#if>
	<property name="idempotentRepository">
		<bean class="org.apache.camel.processor.idempotent.FileIdempotentRepository">
			<property name="fileStore"			value="/XCHGDATA/BJ/idempotent/${service.id+FilePollingComponent.id}.dat"></property>
			<property name="maxFileStoreSize"	value="10485760"></property>
		</bean>
	</property>
	<#if (FilePollingComponent.fileFilter)??>
	<#assign fileFilter = FilePollingComponent.fileFilter>
	<property name="fileFilter">
		<bean class="org.apache.camel.component.file.AntPathMatcherGenericFileFilter">
			<!-- 	? matches one character
					* matches zero or more characters
					** matches zero or more directories in a path 
			-->
			<#if (fileFilter.includes)??>
			<property name="includes" value="${fileFilter.includes}"/>
			</#if>
			<#if (fileFilter.excludes)??>
			<property name="excludes" value="${fileFilter.excludes}"/>
			</#if>
		</bean>
	</property>
	</#if>
	<property name="outputs">
		<list>
			<#list FilePollingComponent.outputs as outputRefId>
			<bean class="com.kingyea.camel.runtime.transition.Transition">
				<property name="targetRef" ref="${outputRefId}"></property>
			</bean>
			</#list>
		</list>
	</property>
</bean>
